package com.xucan.log.jul;

import java.util.logging.Level;
import java.util.logging.Logger;

public class JulTestlog {
   static Logger logger = Logger.getLogger("com.xiezhr");

    public static void main(String[] args) {
        //日志记录输出
        logger.info("这是一个info日志");
        logger.log(Level.INFO,"这是一个info日志");

        String name="程序员晓凡";
        Integer age=18;
        logger.log(Level.INFO,"姓名：{0},年龄：{1}",new Object[]{name,age});


    }
}
